import request from '@/utils/request';

export default {
    getTickets(page = 1, size = 10) {
        return request.get('/api/movies/tickets', { params: { page, size } });
    },
    getRanking() {
        return request.get('/api/movies/ranking');
    },
    buyTicket(ticketId) {
        return request.post(`/api/movies/tickets/${ticketId}/buy`);
    }
};